$("#buttonsub").click(function () {
    var hid = sessionStorage.getItem("hid");
    var a = $("#type option:selected");
    var town = $("#town option:selected");
    var street = $("#street option:selected");
    $.post({
        url: "updateHouse",
        data: {
            "houseEntity.hid":hid,
            "houseEntity.title": $("#title").val(),
            "houseEntity.type": a.val(),
            "houseEntity.area": $("#area").val(),
            "houseEntity.price": $("#price").val(),
            "houseEntity.date": $("#date").val(),
            "houseEntity.town": town.val(),
            "houseEntity.street": street.val(),
            "houseEntity.phone": $("#phone").val(),
            "houseEntity.context": $("#context").val()
        },
        type: "post",
        success:
            function (data) {
                alert(data.msg);
                document.location = "guanli.htm";
            }
    })
})